public class Test {

    public static void main(String[] args) {





























           /* try {
                int a = 10 / 0;
            } catch (ArithmeticException e) {
                System.out.println("捕获到了异常");
            } finally {
                System.out.println("finally代码");
            }

            System.out.println("后续的代码");
*/












        /*try {
            int a = 10 / 0;


        }catch (Exception e){
            System.out.println("捕获到了异常111");
        }catch (NullPointerException e){
            System.out.println("捕获到了异常222");
        }


        System.out.println("后续的代码");*/









       /* try {
            int a = 10 / 0;


        }catch (ArithmeticException e){
            System.out.println("捕获到了异常111");
        }catch (NullPointerException e){
            System.out.println("捕获到了异常222");
        }


        System.out.println("后续的代码");*/


        }

        /*try {
            int a = 10 / 0;
        }catch (NullPointerException e){
            System.out.println("捕获到了异常");
        }


        System.out.println("后续的代码");

    }*/












    /*public static void main(String[] args){

        try {
            int a = 10 / 0;
        }catch (ArithmeticException e){
            System.out.println("捕获到了异常");
        }


        System.out.println("后续的代码");

    }*/

















   /* public static void main(String[] args) throws CloneNotSupportedException{
        test();
    }*/
  /* public static void main(String[] args) {
       try {
           test();
       } catch (CloneNotSupportedException e) {
           throw new RuntimeException(e);
       }
   }
    public static void test() throws CloneNotSupportedException{
        int a = 0;
        if(a == 0){
            throw new CloneNotSupportedException("异常为 a = 0");
        }

    }
*/


        // System.out.println(10 / 0);

        /*int[] arr = {1, 2, 3};
        System.out.println(arr[100]);*/


       /* int[] arr = null;
        System.out.println(arr.length);*/




/*private String name;
    private String gender;
    int age;

    @Override
    public Test clone() throws CloneNotSupportedException {
        return (Test)super.clone();
    }*/

    }

